package nml.mail.reg.smtp;


import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  ok_net extends Reg{

	public void reg(String username, String password) {		
		

		String url = "http://www.ok.net/uyeol";
		get(url);
		
		dr.findElement(By.name("hst[loginname]")).sendKeys(username);
		dr.findElement(By.name("hst[password]")).sendKeys(password);
		dr.findElement(By.name("hst[password2]")).sendKeys(password);
		
		dr.findElement(By.name("hst[name]")).sendKeys("Harden");
		dr.findElement(By.name("hst[surname]")).sendKeys("Doc");
		
		
		dr.findElement(By.name("hst[email]")).sendKeys("nice2mu@qq.com");
		
		dr.findElement(By.name("hst[secretq]")).sendKeys("secqqqq");
		dr.findElement(By.name("hst[secreta]")).sendKeys("seaaaaaaaaaa");
	
		dr.findElement(By.name("hst[userlic]")).click();
		
		dr.findElement(By.name("hst[captcha]")).click();
	
		
		System.out.println(username+"@ok.net");
		
	}

	public static void main(String[] args) {
		new ok_net().reg("echuuo334", "qq316%^#54");
	}
	
	
}
